<?php
//phpinfo();

$paginator->options(
array('update'=>'DatePaging',
'url'=>array('controller'=>'Dates', 'action'=>'display'),
'indicator' => 'LoadingDiv'));
?>

Showing Page
<?php echo $paginator->counter(); ?>
<table id="skelbimas" border="0" width="100%">
	<tr>
		<th width="300"><?php echo $paginator->sort('Is genre', 'is_genre');?>
		</th>
		<th><?php echo $paginator->sort('Search genre', 'search_genre');?></th>
	</tr>
	<?

	foreach($Dates as $date){?>
	<tr>
		<td style="height: 30px;"><?=$date['Date']['title']?></td>
		<td><?=$date['Date']['is_genre'];?></td>
		<?if(@$_SESSION['User']){?>
		<td rowspan="3"><?php echo $html->link('v','/dates/display/viewDate/' . $date['Date']['date_id'])?><br />
		<?php echo $html->link('e','/dates/display/editDate/' . $date['Date']['date_id'])?><br />
		<?php echo $html->link('x','/dates/display/delDate/' . $date['Date']['date_id'], null, 'Are you sure you want to delete date_id ' . $date['Date']['date_id'])?><br />
		</td>

		<?}?>
	</tr>
	<tr>
		<td><?=$date['Date']['text']?></td>
		<td><?=$date['Date']['search_genre'];?></td>
	</tr>
	<tr>



	</tr>
	<tr>
		<td colspan="3">
		<hr />
		</td>
	</tr>

	<?}?>
</table>
	<?php echo $paginator->prev(); ?>
-
	<?php echo $paginator->numbers(array('separator'=>' - ')); ?>
	<?php echo $paginator->next('Next Page');
	?>